export default{
	state:{
		token:'',
		userInfo:{},
		status:false
	},
	mutations:{
		setToken(state,token){
			state.token = token
		},
		setInfo(state,info){
			//获取到用户信息后，就确定了当前用户（token是正确的）
			state.userInfo = info,
			state.status = true
		},
		clearToken(state){
			state.token = '',
			state.userInfo = {},
			state.status = false
		}
	}
}